<%@page import="com.tk.entity.Hero"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>英雄履历</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/manage.css" />
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="js/getBodyWidAndHei.js"></script>
<script type="text/javascript" src="js/time.js"></script>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body onload="getNowFormatDate()">
	<%
		Hero hero = (Hero) request.getSession().getAttribute("hero");
		if (hero == null)
			request.getRequestDispatcher("index.jsp");
	%>

	<!--头部部分-->
	<div class="title">
		<div class="date">
			<p></p>
		</div>
	</div>

	<!--左侧栏-->
	<div class="information">
		<ul>
			<li id="liFirst">
				<div class="headImg">
					<img src="img/home/普通用户.jpg" />
				</div>
				<div id="myName">
					<p>
						<%
							out.print(hero.getHname());
						%>
					</p>
					<br>
					<p>
						<%
							out.print(hero.getPos());
						%>
					</p>
					<br>
					<p>
						<%
							out.print(hero.getTeam());
						%>
					</p>
					<br>
				</div>
			</li>
			<li><a href="servlet/PaginationTheme" >天下形势</a></li>
			<li class="dropdown"><a href="servlet/findheroServlet?tog=repos">日理万机</a>
				<div class="dropdown-content">
					<ul>
						<li><a href="servlet/findheroServlet?tog=repos">任用罢免</a></li>
						<li><a href="servlet/findheroServlet?tog=kill">生杀大权</a></li>
						<li><a>奖率三军</a></li>
						<li><a>调兵遣将</a></li>
					</ul>
				</div></li>
			<li><a>知心交友</a></li>
			<li><a href="home/resume.jsp">英雄履历</a></li>
		</ul>
	</div>

	<div class="inforta">
		<div class="myInfro">
			<div class="myInfroH3">
				<h3>基本资料</h3>
			</div>
			<div class="myInfroTable">
				<table border="0px" cellspacing="" cellpadding="">
					<tr>
						<th>姓名：</th>
						<td>
							<%
								out.print(hero.getHname());
							%>
						</td>
					</tr>
					<tr>
						<th>阵营：</th>
						<td>
							<%
								out.print(hero.getTeam());
							%>
						</td>
					</tr>
					<tr>
						<th>字号：</th>
						<td>
							<%
								out.print(hero.getAlias());
							%>
						</td>
					</tr>
					<tr>
						<th>籍贯：</th>
						<td>
							<%
								out.print(hero.getAdd());
							%>
						</td>
					</tr>
					<tr>
						<th>官职：</th>
						<td>
							<%
								out.print(hero.getPos());
							%>
						</td>
					</tr>
					<tr>
						<th>事迹：</th>
						<td>
							<%
								out.print(hero.getDeeds());
							%>
						</td>
					</tr>
					<tr>
						<a href="home/edit.jsp">修改信息</a>
					</tr>
				</table>

			</div>

		</div>

		<!--论坛中间部分，呈现的是基本资料-->
		<div class="myMedal">
			<div class="myMedalH3">
				<h3>奖章</h3>
			</div>
			<div class="myMedalmedal">
				<div class="medol">
					<div class="medolImg">
						<img src="img/home/奖章2.png" />
					</div>
					<div class="medolP">
						<p>百步穿杨奖</p>
					</div>
				</div>

				<!--没有的奖项的赋予class=“haveNot”-->
				<div class="medol">
					<div class="medolImg">
						<img class="haveNot" src="img/home/奖章2.png" />
					</div>
					<div class="medolP">
						<p class="haveNot">下笔成章奖</p>
					</div>
				</div>


				<div class="medol">
					<div class="medolImg">
						<img src="img/home/奖章2.png" />
					</div>
					<div class="medolP">
						<p>百战百胜奖</p>
					</div>
				</div>
			</div>


		</div>
	</div>
</body>
</html>
